package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * Recommend_service下的服务评论
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("service_comment")
@ApiModel(value = "ServiceComment对象", description = "Recommend_service下的服务评论")
public class ServiceComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("service_comment表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("外键,对应服务的主键id")
    @TableField("recomment_service_id")
    private Integer recommentServiceId;

    @ApiModelProperty("外键,对应评论用户的主键id")
    @TableField("comment_user_id")
    private String commentUserId;

    @ApiModelProperty("用户名称")
    @TableField("comment_user_name")
    private String commentUserName;

    @ApiModelProperty("用户头像")
    @TableField("comment_user_avatar")
    private String commentUserAvatar;

    @ApiModelProperty("评论内容")
    @TableField("`comment`")
    private String comment;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Integer delete;


}
